package net.csdn.business.webhook.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName WebHookAsyncThreadPoolProperties
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/5/7 15:44
 */
@Data
@Component
@ConfigurationProperties(ignoreUnknownFields = false, prefix = "webhook.thread.pool")
public class WebHookThreadPoolProperties {
    /**
     * 核心线程数（默认线程数）
     */
    private int coreSize = 30;

    /**
     * 最大线程数
     */
    private int maxSize = 60;

    /**
     * 允许线程空闲时间（单位：默认为秒）
     */
    private int keepAlive = 60;

    /**
     * 缓冲队列数
     */
    private int queueCapacity = 10000;

    private long timeOut = 1000L;

}
